package pyip.lib.javalearn;

import java.net.URL;
import java.net.URLClassLoader;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
        URL[] appURLs = ((URLClassLoader) ClassLoader.getSystemClassLoader()).getURLs();
        for (int i = 0; i < appURLs.length; i++) {
            System.out.println(appURLs[i]);
        }

        URL[] extURLs = ((URLClassLoader) ClassLoader.getSystemClassLoader().getParent()).getURLs();
        for (int i = 0; i < extURLs.length; i++) {
            System.out.println(extURLs[i]);
        }

        @SuppressWarnings("static-access")
        URL url = Test.class.getClassLoader().getSystemResource("x");
        System.out.println(url.getPath());

        System.out.println(Integer.toHexString((int) (new Date().getTime())));
    }

    
}
